package com.woniu.mapper;

import com.woniu.pojo.Team;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.vo.QueryUserVo;
import com.woniu.vo.TeamLabelVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rsw
 * @since 2022-10-11
 */
public interface TeamMapper extends BaseMapper<Team> {

    @Select("select package_id from tb_team_package where team_id = #{teamId}")
    List<QueryUserVo> selectPackageIdByTeamId(int id);

    @Select("select label_id from tb_team_label where team_id = #{team_id}")
    List<String> selectLabelIdByTeamId(int id);
}
